Skip to content

Feat/federation address input#144

Merged
johdanike merged 2 commits into
SwiftChainn:mainfrom
QueenColly:feat/federation-address-input
Jun 1, 2026
Merged

Feat/federation address input#144
johdanike merged 2 commits into
SwiftChainn:mainfrom
QueenColly:feat/federation-address-input

Conversation

@QueenColly
Copy link
Copy Markdown
Contributor

PR 1 — Federation resolver input

Branch: feat/federation-address-input

PR Title: feat(wallet): build federation address resolver input component

Closes #132

Summary

Adds a user-facing FederationInput component that accepts federation addresses (e.g., name*domain.com).
Implements Component -> Hook -> Service layering:
FederationInput.tsx
useFederationResolver.ts
federation.ts
Adds backend resolver proxy at route.ts which discovers federation servers via stellar.toml and queries them.
Adds lodash.debounce dependency for debounced input handling.
UI shows a spinner while resolving and displays the resolved Stellar public key (account_id) on success.
Notes / Acceptance

Data is fetched from our backend API (no inline mocks).
Please assign the PR before review, attach a screenshot showing API response or tests passing, and include the work summary above in the PR body.
Tests/manual verify: enter a valid federation address to see resolution and Resolved: G... shown.

PR 2 — Address autocomplete

Branch: feat/address-autocomplete

Files changed:

route.ts
places.ts
useAddressAutocomplete.ts
AddressAutocomplete.tsx
PR Title: feat(logistics): add geographic address auto-complete input

Closes #133

Summary

Adds AddressAutocomplete component that fetches address suggestions as users type and shows a selectable dropdown.
Implements Component -> Hook -> Service layering:
AddressAutocomplete.tsx
useAddressAutocomplete.ts
places.ts
Adds server-side proxy for Mapbox Places at route.ts to centralize API key usage and normalize results.
On selection the component auto-fills hidden latitude and longitude fields and exposes city/postcode for backend routing.
Notes / Acceptance

Requires MAPBOX_API_KEY set in server environment for the backend route to work.
Data is fetched from backend API (no inline mocks).
Please assign the PR before review and attach screenshots showing API responses or unit tests passing.
Commands to push branches and open PRs (run from repo root):

If you already have feat/federation-address-input committed and want to push and open PR 1:
To create and push the address-autocomplete branch, commit the new files then push and open PR 2:

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@QueenColly Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@johdanike johdanike merged commit b46ab31 into SwiftChainn:main Jun 1, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Frontend: Delivery Address Auto-complete Integration Frontend: Federation Address Resolver Input

2 participants